<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>维修状态查看</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/sorttable.js'></script>
			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/jquery-latest.pack.js'></script>			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/noConflictOfJquery.js'></script>
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/forCSS.js'></script>
		<script type='text/javascript'>
			$j(function(){
				tbCSS();
			})
		</script>

	</head>

	<body class="body_subpage">

		<div id="page_container">
			<h2>
				报修记录管理
			</h2>

			<table class="table_common sortable table_list_style" width="600px" rowclass="row_odd,row_even">
				<tr>
					<th>
						提交时间
					</th>
					<th>
						类别
					</th>
					<th>
						预约时间
					</th>
					<th>
						维修状态
					</th>
					<th>
						完成
					</th>
					<th>
						详情
					</th>
					<th>
						删除
					</th>
				</tr>
				<s:iterator value="mrlist" status="st">
					<s:hidden value="maintainreportind" />
					<s:if test="#st.odd==true"><tr class="row_odd">
					</s:if>
					<s:else><tr class="row_even">
					</s:else>
					<td>
						<s:date name="maintainreporttime" format="yyyy-MM-dd hh:mm" />
					</td>
					<td>
						<s:property value="maintainreporttype.maintainreporttypename" />
					</td>
					<td>
						<s:date name="maintainreportavailtime" format="yyyy-MM-dd" />
					</td>
					<td>
						<s:property value="maintainreportstatus.maintainreportstatusvalue" />
					</td>
					<s:hidden name="maintainreportid" />
					<td>
						<a href="setfinish.action?maintainreportid=${maintainreportid}">完成</a>
					</td>
					<td>
						<a
							href="findMRByMaintainReportID.action?maintainreportid=${maintainreportid}"><img
								src="<%=request.getContextPath()%>/images/114.gif" /> </a>
					</td>
					<td>
						<a
							href="maintainreportdelete.action?maintainreportid=${maintainreportid}"
							onclick="javascript: return window.confirm('确定删除吗?')"><img
								src="<%=request.getContextPath()%>/images/083.gif" /> </a>
					</td>

				</s:iterator>
			</table>

			<div class="navigator">
				共
				<s:property value="totalRows" />
				条&nbsp; 第
				<s:property value="currentPage" />
				页&nbsp; 共
				<s:property value="pager.getTotalPages()" />
				页&nbsp;
				<a
					href="<s:url value="/maintainreport/listAllMaintainReport.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'first'"/>
       
      </s:url>">首页</a>
				<a
					href="<s:url value="/maintainreport/listAllMaintainReport.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'previous'"/>
      </s:url>">上一页</a>
				<a
					href="<s:url value="/maintainreport/listAllMaintainReport.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'next'"/>
      </s:url>">下一页</a>
				<a
					href="<s:url value="/maintainreport/listAllMaintainReport.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'last'"/>
      </s:url>">尾页</a>
			</div>
		</div>
	</body>
</html>
